package main

import (
	"io/ioutil"
	"path/filepath"
)

func ReadExcelFiles(directory string) ([]string, error) {
	var files []string
	fileInfos, err := ioutil.ReadDir(directory)
	if err != nil {
		return nil, err
	}

	for _, fileInfo := range fileInfos {
		if filepath.Ext(fileInfo.Name()) == ".xlsx" {
			files = append(files, filepath.Join(directory, fileInfo.Name()))
		}
	}
	return files, nil
}
